package auth

type User struct {
	Name  string `json:"username" form:"username" db:"username"`
	Password string `json:"password" form:"password" db:"password"`
}

func (th *User) Correct() bool {
	return th.Name == "admin" && th.Password == "12345678"
}

type UserInfo struct {
	Name  string   `json:"username"`
	Roles []string `json:"roles"`
}